package com.ruoyi.generator.repository;

import com.ruoyi.common.core.page.PageDomain;
import com.ruoyi.generator.domain.GenTable;
import com.ruoyi.generator.domain.idclass.TablesViewId;
import com.ruoyi.generator.domain.views.Tables;
import org.apache.ignite.springdata.repository.IgniteRepository;
import org.apache.ignite.springdata.repository.config.RepositoryConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TablesViewRepository extends JpaRepository<Tables, TablesViewId> {

    List<GenTable> selectDbTableList(GenTable genTable, PageDomain pageDomain);

    /**
     * 查询据库列表
     *
     * @param tableNames 表名称组
     * @return 数据库表集合
     */
    public List<Tables> selectDbTableListByNames(String[] tableNames);

}
